﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tf2hudmaker
{
    // Class that represent the value of a float field in a .res file
    class FieldInfo_Float : FieldInfo
    {
        // CONSTRUCTORS
        public FieldInfo_Float(string replacestring)
        {
            ReplaceString = replacestring;

            Value = 0f;
        }

        public FieldInfo_Float(string replacestring, float value)
        {
            ReplaceString = replacestring;

            Value = value;
        }

        // PROPERTIES
        public float Value;

        // METHODS
        public override string GetFinalString()
        {
            string convertedfloat = this.Value.ToString();
            string finalstring = convertedfloat.Replace(',', '.');
            return finalstring;
        }
    }
}
